cmake_minimum_required(VERSION 3.10)
project(MyProgram)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

include_directories(${CMAKE_SOURCE_DIR}/code/include)

# 手动列出所有源码文件（不使用 GLOB）
set(SOURCES
    code/sources/main.cpp
    code/sources/Game.cpp
    code/sources/Map.cpp
    code/sources/Room.cpp
    code/sources/RestRoom.cpp
    code/sources/ShopRoom.cpp
    code/sources/MonsterRoom.cpp
    code/sources/BossRoom.cpp
    code/sources/Player.cpp
    code/sources/Enemy.cpp
    code/sources/EnemyFactory.cpp
    code/sources/Item.cpp
    code/sources/Inventory.cpp
    code/sources/MetaProgress.cpp
    code/sources/TreasureRoom.cpp
    code/sources/ForgeRoom.cpp
    code/sources/LotteryRoom.cpp
    code/sources/clearScreen.cpp
    code/sources/IO.cpp
)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR})
add_executable(program ${SOURCES})
